.container {
  width: 600px;
  max-width: 800px;
  background-color: #ffffff;
  border-radius: 15px;
  padding: 40px;
  overflow: hidden;
  position: relative;
  z-index: 999;
  border: 1px solid #e6e6e6;
  padding: 30px;
  margin: 50px auto;
  transition: all 0.3s ease-in-out;
  background: linear-gradient(to bottom, #f9f9f9, #ffffff);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.tab-area {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.tab-button {
  padding: 10px 20px;
  border: none;
  border-radius: 10px 10px 0 0;
  background-color: #f0f0f0;
  color: #333;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.tab-button.active {
  background-color: #fff;
  border-bottom: 2px solid #fff;
  font-weight: bold;
}

.tab-button:not(.active):hover {
  background-color: #e0e0e0;
}

.chat-window {
  height: 380px;
  overflow-y: scroll;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 10px;
  display: none;
}

.chat-window.active {
  display: block;
}

.message {
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 10px;
  max-width: 80%;
  position: relative;
}

.message.user {
  background-color: #e7f3fe;
  align-self: flex-end;
  margin-left: auto;
}

.message.ai {
  background-color: #d4edda;
  margin-right: auto;
}

.input-area {
  display: flex;
  gap: 10px;
}

.input-area.hidden {
  visibility: hidden;
}

.input-area input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ced4da;
  border-radius: 10px;
}

.input-area button {
  padding: 12px 20px;
  background-color: #007bff;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.input-area button:hover {
  background-color: #0069d9;
}

.upload-button {
  padding: 12px 20px;
  background-color: #007bff;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-left: 10px;
}

.upload-button:hover {
  background-color: #0069d9;
}

.message p {
  margin-bottom: 10px;
}

button[type="submit"] {
  background-image: linear-gradient(to right, #a6c1ee, #fbc2eb);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transition: background-image 0.3s ease-in-out;
  margin-left: 15px;
}

button[type="submit"]:hover {
  background-image: linear-gradient(to right, #cddfff, #f3cde9);
}

.input-area .input-text {
  outline: none;
  border-color: #3490de;
}